package com.platform.lxh.netty.model;

import com.platform.lxh.netty.utils.SessionIdGenerator;
import lombok.Data;

import java.io.Serializable;

/**
 * @create: 2021-03-10 19:58
 * @author: xiaoh.luo001@bkjk.com
 * @description:
 **/
@Data
public class Message implements Serializable {

    private static final long serialVersionUID = -7173509035276809884L;

    private int magicNumber;
    private byte mainVersion;
    private byte subVersion;
    private byte modifyVersion;
    private String sessionId = SessionIdGenerator.generate();

    private MessageTypeEnum messageType;
    private String body;
}
